package com.cs171.market.entity;

import com.alibaba.fastjson.annotation.JSONField;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="sp_order")
public class OrderList {
    @Id
    @JSONField(name="id")
    private Integer oid;
    private Integer uid;
    @JSONField(name="orderStates")
    @Column(name="osend")
    private String osend;
    @JSONField(name="payments")
    @Column(name="oprice")
    private Integer oprice;

    public OrderList(){
    }

    public OrderList(Integer oid, String osend, Integer oprice) {
        this.oid = oid;
        this.osend = osend;
        this.oprice = oprice;
    }

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public String getOsend() {
        return osend;
    }

    public void setOsend(String osend) {
        this.osend = osend;
    }

    public Integer getOprice() {
        return oprice;
    }

    public void setOprice(Integer oprice) {
        this.oprice = oprice;
    }
}
